/* @keyframes imgEaseIn {
  from{
    top: var(--prev-top);
    left: var(--prev-left);
    width: var(--prev-width);
    height: var(--prev-height);
    opacity: 0;
  }
  to{
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    max-width: calc(var(--w-max) - 24px);
    max-height: calc(var(--w-max) - 24px);
  }
} */
@keyframes opacityEaseIn {
  from{
    top: var(--prev-top);
    left: var(--prev-left);
    width: var(--prev-width);
    height: var(--prev-height);
    opacity: 0;
  }
  to{
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
  }
}
:root {
  --h-max: 100vh;
  --w-max: 100vw;
}
html {
  font-family: -apple-system, SF UI Text, Arial, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, WenQuanYi Micro Hei, sans-serif;
  font-variant-ligatures: no-common-ligatures;
}
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #efefef;
}
* {
  margin: 0;
  padding: 0;
}
.room_title {
  height: 30px;
  line-height: 30px;
  background: #efefef;
}
.room_total{
  color: #A3A3A3;
  font-size: 14px;
  font-weight: normal;
}
.preview_bg{
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 99;
  background: #000;
  animation: opacityEaseIn .2s ease-in;
}
.preview_bg .prev_img{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  object-fit: cover;
  /* animation: imgEaseIn .4s linear; */
}
.d-flex {
  display: flex;
}
.p-12 {
  padding: 12px;
}
.mr-20 {
  margin-right: 20px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mt-10 {
  margin-top: 10px;
}
.mt-5 {
  margin-top: 5px;
}
.ml-10 {
  margin-left: 10px;
}
.mr-10 {
  margin-right: 10px;
}
.head {
  width: 50px;
  height: 50px;
  margin-top: 6px;
  line-height: 50px;
  font-size: 30px;
  color: #000;
  background: #fff;
  text-align: center;
  border-radius: 6px;
}
.content {
  max-width: calc(var(--w-max) * 0.66);
}
.uname {
  color: #a8a8a8;
}
.single_content {
  align-items: flex-start;
}
.msg {
  background: #fff;
  color: #1a1a1a;
  border-radius: 10px;
  word-break: break-all;
  text-align: justify;
  /* max-width: 100%; */
  max-width: max-content;
}

.my_content {
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: flex-start;
}
.my_content .msg {
  background: #a9ea7a;
}
.my_content .uname {
  text-align: right;
}
.content.mr-10{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
}
.txt-center {
  text-align: center;
}
.msg_area {
  position: relative;
  padding: 10px;
  height: calc(var(--h-max) - 180px);
  overflow-y: auto;
  scroll-behavior: smooth;
}
.msg_area .letter_tip{
  color: #A3A3A3;
  width: 100%;
  font-size: 14px;
}
.load_tip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  font-size: 20px;
}
.send_area {
  padding: 10px;
  background: #efefef;
  align-items: center;
}
.input_img {
  display: none;
}
.add_icon {
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.msgpic {
  cursor: pointer;
  max-width: calc(var(--w-max) * 0.5);
  max-height: 200px;
  object-fit: cover;
}
